package com.pharmcube.xjy.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(tags = "测试接口-hello")
@RestController
@RequestMapping("/hello")
public class HelloController {

    @RequestMapping(value = "/getName", method = {RequestMethod.GET, RequestMethod.POST})
    @ResponseBody
    @ApiOperation(value = "hello somebody", notes = "hello xjy notes", httpMethod = "POST")
    public String worldMap(@RequestParam String name) {
        return "hello " + name;
    }
}

